package com.baizhi.dao;

import com.baizhi.entity.Banner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BannerDao {
    //添加轮播图
    public int insertBanner(Banner banner);
    //删除轮播图，假删
    public int deleteBannerById(int bannerId);
    //更新轮播图
    public int updateBanner(Banner banner);
    //查询所有
    public List<Banner> selectAllBanner(@Param("offset") int offset, @Param("limit") int limit);
    public int selectCount();
    public Banner selectOne(int bannerId);
}
